{foreach from=$aMenuItems item=aMenuItem}
{if $aMenuItem.mem_only == '0' || $aMenuItem.mem_only == '1' &&  $isMember || $aMenuItem.mem_only == '2' && !$isMember}
{if !$aMenuItem.shutdown}
 	<td class="menu" onclick="javascript:window.location.href='{url link=$aMenuItem.url bVerifyUrl=true}';" onmouseover="this.className='menu2';" onmouseout="this.className='menu';">
 	{if getParam('bUseAnchors')}<a href="{url link=$aMenuItem.url bVerifyUrl=true}">{/if}{if $aMenuItem.is_module}{language text=$aMenuItem.title}{else}{$aMenuItem.title}{/if}{if getParam('bUseAnchors')}</a>{/if}
 	</td>
{/if}
{/if}
{/foreach}